package com.itboye.ihomebank.myzhujia;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;
/**
 * 选择保修类型
 *
 */
public class ActivityRepair extends BaseOtherActivity {
	TextView add_shap_title_tv;
	ImageView close_icon;
	LinearLayout repair_jinji, repair_jvjia,repair_jiadian;
	
	@Override
	protected int layout_id() {
		return R.layout.activity_repair;
	}
	@Override
	public void onClick(View v) {
		Intent intent;
		switch (v.getId()) {
		case R.id.close_icon://返回
			finish();
			break;
		case R.id.repair_jinji://紧急维修
			intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:123456"));
			startActivity(intent);
//			intent = new Intent(ActivityRepair.this,ActivityRepairAppointment.class);
//			startActivity(intent);
			break;
		case R.id.repair_jvjia://居家维修
			intent = new Intent(ActivityRepair.this,ActivityHomeRepair.class);
			startActivity(intent);
			break;
		case R.id.repair_jiadian://家电维修
			intent = new Intent(ActivityRepair.this,ActivityRepairAppliances.class);
			startActivity(intent);
			break;

		default:
			break;
		}
	}

	@Override
	protected void onInitController() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onInit() {
		add_shap_title_tv.setText("选择保修类型");

	}

	@Override
	protected void onReadIntent(Bundle bundle) {
		// TODO Auto-generated method stub
		
	}

	

}
